package com.happy.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName ("answer_info")
public class AnswerEntity extends BaseEntity {

    @TableId (value = "answerId", type = IdType.AUTO)
    private Integer answerId;
    @TableField ("subjectId")
    private Integer subjectId;
    @TableField ("recordId")
    private Integer recordId;
    @TableField ("optionId")
    private Integer optionId;
    // 分析报告所用
    @TableField(exist = false)
    private String optionContent;

    @TableField ("userId")
    private Integer userId;
    @TableField ("createTime")
    private Date createTime;
    @TableField ("changeTime")
    private Date changeTime;
    @TableField ("isUsed")
    private Integer isUsed;

    public Integer getAnswerId () {
        return answerId;
    }

    public void setAnswerId ( Integer answerId ) {
        this.answerId = answerId;
    }

    public Integer getSubjectId () {
        return subjectId;
    }

    public void setSubjectId ( Integer subjectId ) {
        this.subjectId = subjectId;
    }

    public Integer getRecordId () {
        return recordId;
    }

    public void setRecordId ( Integer recordId ) {
        this.recordId = recordId;
    }

    public Integer getOptionId () {
        return optionId;
    }

    public void setOptionId ( Integer optionId ) {
        this.optionId = optionId;
    }

    public String getOptionContent () {
        return optionContent;
    }

    public void setOptionContent ( String optionContent ) {
        this.optionContent = optionContent;
    }

    public Integer getUserId () {
        return userId;
    }

    public void setUserId ( Integer userId ) {
        this.userId = userId;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime ( Date createTime ) {
        this.createTime = createTime;
    }

    public Date getChangeTime () {
        return changeTime;
    }

    public void setChangeTime ( Date changeTime ) {
        this.changeTime = changeTime;
    }

    public Integer getIsUsed () {
        return isUsed;
    }

    public void setIsUsed ( Integer isUsed ) {
        this.isUsed = isUsed;
    }

    @Override
    public String toString () {
        return "AnswerEntity{" +
                "answerId=" + answerId +
                ", subjectId=" + subjectId +
                ", optionId=" + optionId +
                ", userId=" + userId +
                ", createTime=" + createTime +
                ", changeTime=" + changeTime +
                ", isUsed=" + isUsed +
                '}';
    }
}
